<template>
<!--  <div class="mod-config" v-loading="loading"-->
<!--       element-loading-text="拼命加载中"-->
<!--       element-loading-spinner="el-icon-loading"-->
<!--       element-loading-background="rgba(0, 0, 0, 0.8)" style="height:100%">-->
<!--    <iframe width="100%" height="100%" scrolling="no" src="/static/pdfjs/web/viewer.html" ref="pdfViewerRef" ></iframe>-->
<!--  </div>-->
  <RkPdf />
</template>

<script setup>
import {h, nextTick, onMounted, ref} from "vue"
import RkPdf from '@/components/pdf/RkPdf.vue'

const src = ref("")
const loading = ref(false)
const pdfViewerRef=ref(null)


defineProps({
  src: {
    type: String,
    default: ""
  }
})


const getPdfCode = () => {
  prohibit()
}

const prohibit = () => {
  document.oncontextmenu = function (ev) {
    return false;    //屏蔽右键菜单
  }
}

onMounted(() => {
  nextTick(() => {
    getPdfCode();
  })
})


</script>

<style scoped>

</style>
